package BC101_班级成绩输入输出;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextLine()) {
            String[] str = sc.nextLine().split(" ");
            double[] num = new double[5];
            for (int i = 0; i < 5; i++) {
                num[i] = Double.parseDouble(str[i]);
            }
            double sum = 0;
            for (double n : num) {
                System.out.printf("%.1f ", n);
                sum += n;
            }
            System.out.printf("%.1f", sum);
            System.out.println();
        }
    }
}
